﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using ZoneLine.Common;

namespace ZoneLine.Views.converts
{
    public class NumConvertToWorkDirection : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is int rlt)
            {
                if (rlt == 1)
                {
                    return "左";
                }
                else if (rlt == 2)
                {
                    return "右";
                }
            }
            return "未定义";
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
